package config

type EsConfig struct {
	Addr  string `yaml:"addr"`
	Sniff bool   `yaml:"sniff"`
}

type JaegerConfig struct {
	Addr string `yaml:"addr"`
}
type ServerConfig struct {
	Port       int    `yaml:"port"`
	Weight     int    `yaml:"weight"`
	EtcdAddr   string `yaml:"etcdAddr"`
	Label      string `yaml:"label"`
	ConsulAddr string `yaml:"consulAddr"`
	ServerName string `yaml:"serverName"`
}

type AppConfig struct {
	Jaeger *JaegerConfig `yaml:"jaeger"`
	Server *ServerConfig `yaml:"server"`
	Es     *EsConfig     `yaml:"es"`
}
